<%--
    Document   : account
    Created on : 5/Jun/2009, 0:42:26
    Author     : eurico
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="deti.es.ukni.cm.account.AccountBean"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

 <%
    AccountBean curAccount = (AccountBean) session.getAttribute("account");
    if ( curAccount != null )
        response.sendRedirect("./");
    else{

        String message = (String) session.getAttribute("message");
        if ( message != null ){
            session.removeAttribute("message");
        }
 %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>MyBand</title>
        <link rel="stylesheet" type="text/css" href="../resource/myband.css" />
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">
        </script>
    <!--    <script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js"></script>
        <script>
             $(document).ready( function(){
                $("#dologin").validate();
             });
        </script> -->
    </head>
    <body>

        <div id="header">
            <div id="logo">
                <img src="../resource/mybandlogo.png" alt="myband_logo"/>
            </div>
        </div>
        <%= message !=null ? message : "" %>

        <div id="nav">
            <ul>
               <li><a href="../band">Search Bands</a></li>
            </ul>
        </div>

        <div id="content">
        <div class="new_account">
            <h1>Login</h1>
            
            <form id="dologin" method="post" action="login">
            <fieldset>
                <label for="user" > username </label>
                <input id="user" type="text" size="30" name="username" class="required"><p>
                <label for="pwd">password</label>
                <input id="pwd" type="password" size="30" name="pwd" class="required"><p>
                <input class="submit" type="submit" value="login"/>
            </fieldset>
                
            </form>
            <span><a href="new.jsp">Create Account</a></span>
        </div>
        </div>
    </body>
</html>

<% } %>
